#!/bin/sh

clear
echo "1:安装linux上的服务 mysql、php、nginx "
echo "2:初始化linux服务环境 以及 安装其他linux服务"
echo

read -p  "请输入选择："  SSZZ
clear

if [ $SSZZ == 1 ];then
       #1：下载安装包，安装lnmp环境
       AA=`[ -e /mnt/lnmp1.5/ ] && echo ok || echo no`   
   if [ $AA == no ];then   
       yum -y install wget unzip;cd /mnt/
       wget https://gitee.com/zzhlinux911218/shell/raw/master/dgg-lnmp1.5.zip --no-check-certificate
       unzip dgg-lnmp1.5.zip;cd lnmp1.5/;clear;bash install.sh       
   elif [ $AA == ok ];then
       bash /mnt/lnmp1.5/install.sh   
   fi
   
elif [ $SSZZ == 2 ];then
       #2：初始化lnmp环境
       BB=`[ -e /mnt/dgg-install-2/ ] && echo ok || echo no`   
   if [ $BB == no ];then
       cd /mnt/;wget https://gitee.com/zzhlinux911218/shell/raw/master/dgg-install-2.zip --no-check-certificate
       unzip dgg-install-2.zip;cd dgg-install-2;clear;bash install.sh        
   elif [ $BB == ok ];then
       bash /mnt/dgg-install-2/install.sh   
   fi
   

fi

exit


   
   

   